//
//  CurrentLoginUser.h
//  Kaagad Peso
//
//  Created by ZhengChengFeng on 2024/10/15.
//

#import "BaseModel.h"
#import "LoginViewController.h"

#define kUserTokenSessionKey   @"kUserTokenSessionKey"

NS_ASSUME_NONNULL_BEGIN

@interface CurrentUser : BaseModel

@property (nonatomic,copy) NSString *sessionKey;

+ (instancetype)mine;

+ (void)loginSuccess:(NSString *)sessionKey;

+ (void)logoutControllerWithIsTokenExpire:(BOOL)isTokenExpire;

- (BOOL)hasLogged;

- (void)reset;

- (void)save;

- (BOOL)isYNLanguage;

+ (void)actionWhenLogin:(VoidBlock)block onVC:(UIViewController * __nullable)vc;

+ (void)actionWhenLogin:(VoidBlock)block;


@end

NS_ASSUME_NONNULL_END
